package com.bdqn.t382;

import com.bdqn.t382.entity.Pet;
import com.bdqn.t382.factory.PetDaoFactory;
import com.bdqn.t382.service.PetService;
import com.bdqn.t382.service.PetServiceImp;

public class Main {
    public static void main(String[] args) {
         // 创建 PetService
         PetService petService = new PetServiceImp();
         Pet pet = new Pet();
         pet.setName("小马喽");
         petService.save(pet);
         }
}
